package pl.edu.mimuw.irs.rcp.controller.editor.workflow.handler;

import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.CommandStack;

import pl.edu.mimuw.irs.core.model.design.net.IRSNode;
import pl.edu.mimuw.irs.rcp.controller.editor.workflow.command.EnableAutolayoutCommand;

public class EnableAutolayoutHandler extends AbstractMultipleNodesHandler {

	// *** Attributes

	// *** Methods

	@Override
	protected Object execute(ExecutionEvent event, CommandStack commandStack,
			IRSNode node) {
		Command command = new EnableAutolayoutCommand(node);
		
		commandStack.execute(command);
		
		return null;
	}
}
